package com.jdd.modules.area.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("charge_rules_module_step")
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
@Accessors(chain = true)
@ApiModel(value="charge_rules_module_step对象", description="停车场计费规则模块表")
public class ChargeRulesModuleStep {
    @TableId(type = IdType.ID_WORKER)
    private String id;
    @ApiModelProperty(value = "计费规则id")
    private String chargeRulesModuleId;
    @ApiModelProperty(value = "停车时长")
    private Integer parkTime;
    @ApiModelProperty(value = "停车金额")
    private Integer parkFee;
    /**创建人id*/
    @ApiModelProperty(value = "创建人id")
    private String createUserId;
    /**创建人名称*/
    @ApiModelProperty(value = "创建人名称")
    private String createUserName;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**修改人id*/
    @ApiModelProperty(value = "修改人id")
    private String updateUserId;
    /**修改人名称*/
    @ApiModelProperty(value = "修改人名称")
    private String updateUserName;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
